﻿using Hidistro.Membership.Context;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.SaleSystem.Tags;
using Juse.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hidistro.UI.SaleSystem.CodeBehind
{
    public class Limitbuy : HtmlTemplatedWebControl
    {
        private wnxd_Shopping_LiList mrbk;
        private wnxd_Shopping_LiList rmzc;
        protected override void AttachChildControls()
        {
            this.mrbk = (wnxd_Shopping_LiList)this.FindControl("mrbk");
            this.rmzc = (wnxd_Shopping_LiList)this.FindControl("rmzc");
            if (this.Page.Request.HttpMethod == "GET")
            {
                ProductBrowser ProductBrowser = new ProductBrowser();
                //this.mrbk.DataSource = ProductBrowser.GetRandomProductView(9);
                //this.mrbk.DataBind();
                this.rmzc.DataSource = ProductBrowser.GetProductView(15);
                this.rmzc.DataBind();
            }
        }
        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "Skin-Limitbuy.html";
            }
            base.OnInit(e);
        }

        private void LoadPageSearch()
        {
            MetaTags.AddMetaKeywords("橘色商城，两性情趣用品", HiContext.Current.Context);
            MetaTags.AddMetaDescription("橘色商城男女两性情趣用品限时抢购！货到付款，保密配送！-专业的成人用品、情趣用品、性用品网上特卖商城，在线特卖杜蕾斯、冈本、LELO等国际一线品牌男女情趣用品、情趣内衣、安全套、人体润滑剂等数千款优质性用品", HiContext.Current.Context);
            PageTitle.AddSiteNameTitle("男女两性情趣用品限时抢购！货到付款，保密配送！");
        }
    }
}
